package org.linlinjava.litemall.db.dao;

import java.util.List;

import com.github.yulichang.base.MPJBaseMapper;
import org.apache.ibatis.annotations.Param;
import org.linlinjava.litemall.db.domain.LitemallRewardRule;
import org.linlinjava.litemall.db.domain.LitemallRewardRuleExample;

public interface LitemallRewardRuleMapper extends MPJBaseMapper<LitemallRewardRule> {
    long countByExample(LitemallRewardRuleExample example);

    int deleteByExample(LitemallRewardRuleExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(LitemallRewardRule record);

    int insertSelective(LitemallRewardRule record);

    LitemallRewardRule selectOneByExample(LitemallRewardRuleExample example);

    LitemallRewardRule selectOneByExampleSelective(@Param("example") LitemallRewardRuleExample example, @Param("selective") LitemallRewardRule.Column ... selective);

    List<LitemallRewardRule> selectByExampleSelective(@Param("example") LitemallRewardRuleExample example, @Param("selective") LitemallRewardRule.Column ... selective);

    List<LitemallRewardRule> selectByExample(LitemallRewardRuleExample example);

    LitemallRewardRule selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallRewardRule.Column ... selective);

    LitemallRewardRule selectByPrimaryKey(Integer id);

    LitemallRewardRule selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") LitemallRewardRule record, @Param("example") LitemallRewardRuleExample example);

    int updateByExample(@Param("record") LitemallRewardRule record, @Param("example") LitemallRewardRuleExample example);

    int updateByPrimaryKeySelective(LitemallRewardRule record);

    int updateByPrimaryKey(LitemallRewardRule record);

    int logicalDeleteByExample(@Param("example") LitemallRewardRuleExample example);

    int logicalDeleteByPrimaryKey(Integer id);

    int updateBatchById(@Param("status") Byte status,@Param("ids") List<Integer> ids);
}